	<template>
  <div>
    <div class="top">
      <div style="width: 60px" @click="returnTap">取消</div>
      <span>选择新群主</span>
      <van-button type="info" style="height: 30px" @click="returnTap"
        >提交</van-button
      >
    </div>
    <div class="input">
      <van-icon v-if="search == ''" class="input_icon" name="search" />
      <input type="text" class="inputAl" v-model="search" placeholder="搜索" />
    </div>
    <div class="list" @click="choose">
      <div class="listOne">
        <img src="../../assets/images/logo.png" alt="" />
        <span>小张</span>
      </div>
    </div>
  </div>
</template>
<script>
import { Dialog } from 'vant'
export default {
  data() {
    return {
      search: "",
    };
  },
  methods: {
    returnTap() {
      this.$router.go(-1);
    },
    choose() {
      Dialog.confirm({
        title: "提示",
        message: "确定选择小李为新群主，你将自动放弃群主身份",
      })
        .then(() => {
          // on confirm
        })
        .catch(() => {
          // on cancel
        });
    },
  },
};
</script>
<style scoped>
.top {
  height: 60px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 60px;
  position: relative;
  background: #eeeeee;
}
.input {
  height: 50px;
  width: 100%;
  text-align: center;
  line-height: 50px;
  position: relative;
  background: #eeeeee;
}
.input_icon {
  position: absolute;
  left: 43%;
  top: 15px;
  font-size: 18px;
}
.inputAl::-webkit-input-placeholder {
  padding-left: 5%;
}
.inputAl {
  height: 35px;
  width: 96%;
  border: none;
  text-align: center;
}
.listOne {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
}
.listOne img {
  width: 40px;
  height: 40px;
  margin: 0 10px;
}
.listOne span {
  font-weight: bold;
}
</style>